<?php
/**
 * @var \omnilight\scheduling\Schedule $schedule
 */
/**
 * 任务调度
 * crontab -e * * * * * php /path/to/yii schedule/run  1>> /dev/null 2>&1
 * @see
 */
//$schedule->exec('ls -al > ll.log')->cron('*/1 * * * *');
// $schedule->command('migrate')->cron('* * * * *');

// $schedule->exec('composer self-update')->daily();

// 更新时间
$schedule->exec('ntpdate time.nist.gov')->cron('*/30 * * * *');
// 通话备份
//$schedule->exec('php yii phone/call/restore-weekly-record-db')->cron('0 2 * * *');
//$schedule->exec('php yii phone/call/copy-weekly-record-files')->cron('0 2 * * *');
$schedule->exec('php yii phone/call/filter-store-weekly-record-db-and-files')->cron('0 2 * * *');
// 银联
//$schedule->exec('php yii unionpay/batch/run1004')->cron('*/5 * * * *');
//$schedule->exec('php yii unionpay/batch/run1009')->cron('*/5 * * * *');
//$schedule->exec('php yii unionpay/batch/run1025')->cron('*/5 * * * *');
// 临时文件清理
$schedule->exec('php yii cron/delete-old-upload-files')->cron('0 2 * * *');
$schedule->exec('php yii cron/delete-un-use-attsort-files')->cron('0 2 * * *');
//$schedule->exec('php yii gps/task/check-order-car')->cron('0 2 * * *');
// 爬虫
//$schedule->exec('php yii others/spider/get-car-series-from-qi-che-zhi-jia')->cron('0 2 * * *');
// 爬取che300数据
//$schedule->exec('php yii job/crawl-from-che300')->cron('0 3 * * *');
$schedule->exec('php yii job/crawl-add-from-che300 3.5.1378')->cron('0 3 * * *');

/**
 * ["ModelTimestamp"]=>
string(21) "2018-10-23 15:11:32.0"
["SeriesTimestamp"]=>
string(21) "2018-10-23 09:42:01.0"
["BrandTimestamp"]=>
string(21) "2018-10-19 09:44:34.0"
["CurrentVersion"]=>
string(7) "3.5.953"
["InitialVersion"]=>
string(7) "3.5.873"
}
 */
// php yii job/crawl-add-from-che300

// 下载文件清单
$schedule->exec('php yii bank/busi/file-list-download')->cron('0 2 * * *');
// 上传代付图片
$schedule->exec('php yii loan/default/ryx-images-upload')->cron('0 2 * * *');
// 异步上传手工图片
$schedule->exec('php yii job/do-quene-manual-pics')->cron('* * * * *');
// 强制所有api用户重新登录
$schedule->exec('php yii job/force-all-app-user-login')->cron('0 2 * * *');
// 乐税发票真伪验证
$schedule->exec('php yii job/lsfpzw-do')->cron('0 8 * * *');
// 异步处理多媒体文件上传
$schedule->exec('php yii job/do-quene-multi-media')->cron('* * * * *');
//$schedule->exec('php yii job/tmp-media-upload')->cron('1 0 * * *');